package com.bsierp.business.pojo;

/**
 * OrderHistory entity. @author MyEclipse Persistence Tools
 */

public class OrderHistory implements java.io.Serializable {

    // Fields

    private OrderHistoryId id;
    private User userByOrderBuyer;
    private OrderState orderState;
    private User userByOrderSeller;
    private Product product;

    // Constructors

    /** default constructor */
    public OrderHistory() {
    }

    /** full constructor */
    public OrderHistory(OrderHistoryId id, User userByOrderBuyer,
            OrderState orderState, User userByOrderSeller, Product product) {
        this.id = id;
        this.userByOrderBuyer = userByOrderBuyer;
        this.orderState = orderState;
        this.userByOrderSeller = userByOrderSeller;
        this.product = product;
    }

    // Property accessors

    public OrderHistoryId getId() {
        return this.id;
    }

    public void setId(OrderHistoryId id) {
        this.id = id;
    }

    public User getUserByOrderBuyer() {
        return this.userByOrderBuyer;
    }

    public void setUserByOrderBuyer(User userByOrderBuyer) {
        this.userByOrderBuyer = userByOrderBuyer;
    }

    public OrderState getOrderState() {
        return this.orderState;
    }

    public void setOrderState(OrderState orderState) {
        this.orderState = orderState;
    }

    public User getUserByOrderSeller() {
        return this.userByOrderSeller;
    }

    public void setUserByOrderSeller(User userByOrderSeller) {
        this.userByOrderSeller = userByOrderSeller;
    }

    public Product getProduct() {
        return this.product;
    }

    public void setProduct(Product product) {
        this.product = product;
    }

}